<template>
    <el-card>
        <div class="box">
            <img :src="useUser.avatar" alt="">
            <div class="user">
                <h3>{{ getTime() }},欢迎回来{{ useUser.username }}</h3>
                <p>硅谷甑选运营平台</p>
            </div>
        </div>
    </el-card>
    <div class="bottom">
        <svg-icon name="welcome" width="600px" height="400px"></svg-icon>
    </div>
</template>

<script setup lang="ts">
// 引入用户相关的仓库
import useUserStore from '@/store/modules/user';
let useUser = useUserStore()
import { getTime } from '@/utils/time'
</script>
<style lang="scss" scoped>
.box {
    display: flex;

    img {
        width: 100px;
        height: 100px;
        border-radius: 50%;
    }

    .user {
        margin-left: 20px;

        h3 {
            font-size: 40px;
            font-weight: 900;
            margin-bottom: 30px;
        }

        p {
            color: skyblue;
            font-style: italic;
        }
    }
}

.bottom {
    margin-top: 50px;
    display: flex;
    justify-content: center;
}
</style>